package com.bwie.vo;

import com.bwie.Main;
import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.Pattern;
import javax.validation.constraints.Size;
import java.io.Serializable;
@Data
public class LoginVo implements Serializable {
    @NotBlank(message = "账号不能为空")
    @Size(min = 6,message = "账号必须在6位")
    private String userName;
    @NotBlank(message = "密码不能为空")
    @Pattern(regexp = "^(?=.*\\d)(?=.*[a-z])(?=.*[A-Z])[a-zA-Z0-9]{6,}$",message = "密码必须存在字母和数字,密码必须在6位")
    private String userPass;
}
